Whether to receive information from other devices
Function:

Description: Determine whether a string message from another Bluetooth device has been received.
Parameter:
- str: data type: string; the string entered by the user.
Return:
- true: Successfully received.
- false: Failed to receive.